package com.duo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duo.dto.EmployeeDTO;
import com.duo.dto.EmployeeLoginDTO;
import com.duo.dto.EmployeePageQueryDTO;
import com.duo.entity.Employee;
import com.duo.result.PageResult;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Object login(EmployeeLoginDTO employeeLoginDTO, String oldToken);

    /**
     * 保存员工
     * @param employeeDTO
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询员工
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 更新员工信息
     * @param employeeDTO
     */
    void update(EmployeeDTO employeeDTO);



}
